package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 省/州
 * </p>
 * @author long
 * @since 2024-10-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_province")
public class ProvinceDo extends Model<ProvinceDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 国家二字简码
     */
    @TableField("country_region_code")
    private String countryRegionCode;

    /**
     * 省份
     */
    @TableField("province")
    private String province;

    @TableField("province_code")
    private String provinceCode;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
